<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
  var set = new Set([2,1,3]);
  for (const number of set.entries()) {
      console.log(number)
  }
</script>
</html>